// $headerBgc: #2a3742; //头部背景颜色
// $headerHeight: 56px; //头部高度
// $leftWidth: 210px; //左侧宽度
// $leftBgc: #262b32; //左侧背景颜色
@import "./variables.scss";
// 颜色设置
html,
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
li,
ol,
dl,
dt,
dd,
div,
span,
a,
b,
i,
strong,
em,
img,
form,
input,
textarea,
table,
th,
td,
section {
    padding: 0;
    margin: 0;
}

.yellow {
    background-color: #ffff00 !important;
}

.blue {
    background-color: #000ffe !important;
}

.green {
    background-color: #008000 !important;
}

.white {
    background-color: #fff !important;
}

.red {
    background-color: #ff0000 !important;
}

a,
Link {
    text-decoration: none;
    color: #666;
}

html,
body {
    background-color: #d2d6df;
    font-size: 14px;
    min-width: 1366px !important;
}

.mr-10 {
    margin-right: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.pr-10 {
    padding-right: 10px;
}

.pl-10 {
    padding-left: 10px;
}

/*select {
  !*很关键：将默认的select选择框样式清除*!
  appearance:none;
  -moz-appearance:none;
  -webkit-appearance:none;
  !*在选择框的最右侧中间显示小箭头图片*!
  background: url("../images/select-down.png") no-repeat scroll right center #fff;
  !*为下拉小箭头留出一点位置，避免被文字覆盖*!
  padding-right: 14px;
  padding-left: 10px;
}*/

#app {
    width: 100%;
    height: 100%;
    .box {
        width: 100%;
        height: 100%;
    }
}

.main-left-hide {
    left: -$leftWidth !important;
}

.main-right-moveLeft {
    left: 0 !important;
}

.main-right-moveLeft .shouqi {
    background: url(../images/shouqi2.png) no-repeat center;
}

.main-left::-webkit-scrollbar {
    width: 6px;
    background-color: #505050;
}

.main-left::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
    background-color: #505050;
}

.main-left::-webkit-scrollbar-track {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    background-color: #e6e6e6;
}

.main-left {
    position: absolute;
    top: 0;
    left: 0;
    width: $leftWidth;
    height: 100%;
    font-size: 14px;
    color: #fff;
    background: $leftBgc !important;
    transition: left 0.5s linear;
    min-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 56px;
    .logo {
        width: $leftWidth;
        height: $headerHeight;
        line-height: $headerHeight;
        position: fixed;
        top: 0;
        left: 0;
        padding-left: 24px;
        font-size: 14px;
        // background: url(../images/logo.png) no-repeat 24px 10px $headerBgc;
        background: $headerBgc;
        background-size: 60%;
        cursor: pointer;
        z-index: 2;
        color: #efefef;
        font-weight: bold;
    }
    .listIcon {
        float: left;
        display: inline-block;
        width: 30px;
        height: 30px;
        margin-top: 10px;
    }
    .left_11 {
        background: url(../images/left_11.png) no-repeat center;
    }
    .left_21 {
        background: url(../images/left_21.png) no-repeat center;
    }
    .left_14 {
        background: url(../images/left_14.png) no-repeat center;
    }
    .left_07 {
        background: url(../images/left_07.png) no-repeat center;
    }
    .content {
        padding-left: 20px;
        height: 0;
        line-height: 50px;
        overflow: hidden;
        cursor: pointer;
        transition: height 0.3s linear;
        background: url(../images/line.png) no-repeat 30px 0 #464d77;
        a {
            font-size: 14px;
            display: inline-block;
            height: 50px;
            line-height: 50px;
            text-align: left;
            margin-left: 7px;
            padding-left: 20px;
            color: #fff;
            background: url(../images/cirl.png) no-repeat 0 20px;
        }
        a:active,
        a:hover {
            background: url(../images/cirl2.png) no-repeat 0 20px;
        }
    }
    .full {
        height: 50px;
        a {
            width: 100%;
            float: left;
            color: white;
        }
    }
    .nav-child {
        border-bottom: 1px solid #3b4268;
    }
    .title {
        padding-left: 20px;
        height: 50px;
        line-height: 50px;
        cursor: pointer;
        font-size: 14px;
        margin: 0;
        font-weight: normal;
        outline: none;
        color: #fff;
        background: url(../images/right-arrow.png) 200px 24px no-repeat;
    }
    .title:hover {
        background-color: #5d6594;
    }
    .titleActive {
        background: url(../images/right-arrow2.png) 200px 24px no-repeat #5d6594;
    }
}

.main-right {
    position: absolute;
    left: $leftWidth;
    top: 0;
    right: 0;
    bottom: 0;
    height: 100%;
    transition: left 0.5s linear;
    min-height: 600px;
    min-width: 1000px;
    z-index: 3;
    background: #fafafa;
    .shouqi {
        cursor: pointer;
        float: left;
        width: 30px;
        height: 25px;
        margin-top: 12px;
        margin-left: 17px;
        background: url(../images/shouqi.png) no-repeat center;
    }
    .lachu {
        background: url(../images/shouqi2.png) no-repeat center;
    }
    .contentPage {
        position: absolute;
        left: 0;
        right: 0;
        top: $headerHeight;
        bottom: 0;
        margin-bottom: 40px;
        background-color: #fafafa;
        overflow: auto;
        min-width: 1000px;
    }
    .top {
        height: $headerHeight;
        line-height: $headerHeight;
        font-size: 14px;
        color: #b2b2b2;
        background-color: $headerBgc;
        a:nth-child(2) {
            margin-left: 10px;
        }
        .fuhao {
            margin-left: 5px;
        }
        .changeStyle {
            display: inline-block;
            width: 24px;
            height: $headerHeight;
            background: url(../images/head.png) no-repeat center;
        }
    }
}

/*切换主题事*/

/*.theme-white{
    !*左侧*!
    .main-left {
        background-color: #f2f2f2;
    }
    .nav-child{
        border-bottom: 1px solid #d9d9d9;
    }
    .content {
        padding-left: 0;
        background: none;

        a {
            margin-left: 27px;
            color: #333;
            background: url(../images/right-arrow2-33.png) no-repeat;
            background-position: 0 20px;
        }
        a:active, a:hover {
            background: url(../images/right-arrow2-33.png) no-repeat;
            background-position: 0 20px;
        }
    }

    .title {
        font-size: 14px;
        margin: 0;
        padding-left: 40px;
        cursor: pointer;
        height: 50px;
        font-weight: normal;
        line-height: 50px;
        outline: none;
        position: relative;
        color: #333;
        background: url(../images/right-arrow2-33.png) no-repeat;
        background-position: 20px 20px;
    }
    .title:hover{
        background: url(../images/right-arrow2-33-w.png) no-repeat;
        background-color: #4d4d4d;
        background-position: 20px 20px;
        color: #fff;
    }
    .titleActive, .titleActive:hover {
        background: url(../images/right-arrow2-22.png) no-repeat;
        background-color: #4d4d4d;
        background-position: 20px 20px;
        color: #fff;
    }


    !*右侧*!
    .logo {
        margin-bottom: 4px;
        border-bottom: 1px solid #aeaeae;
        box-shadow: 0 4px #2c2c2c;
        background: url(../images/logo-white.png) no-repeat center center #fff;
    }
    .top{
        margin-bottom: 4px;
        border-bottom: 1px solid #aeaeae;
        box-shadow: 0 4px #2c2c2c;

        .changeStyle {
            background: url(../images/version-icon-b.png) no-repeat center;
        }
    }
    .shouqi{
        background: url(../images/shouqi-2.png) no-repeat center;
    }
    .lachu {
        background: url(../images/shouqi2-2.png) no-repeat center;
    }
}*/

.oSearchActive {
    box-shadow: 0 0 10px #1e99dd !important;
}

.treeBox {
    width: 250px;
    margin-top: 50px;
    ul {
        background-color: #ffffff;
        li {
            div {
                color: #666666 !important;
                background-color: #ffffff !important;
            }
        }
    }
}

.formBoxStyle {
    background-color: #ffffff;
    margin: 10px 10px 0;
    overflow-y: auto;
    .formTitle {
        background-color: #fff;
        height: 40px;
        line-height: 40px;
        .left {
            font-size: 16px !important;
            float: left;
            height: 40px;
            line-height: 40px;
            padding-right: 45px;
            padding-left: 10px;
        }
        .right {
            float: right;
            height: 30px;
            .slidUp {
                cursor: pointer;
                float: left;
                height: 100%;
                width: 44px;
                background: url(../images/icon_11.png) no-repeat center;
            }
            .slidDown {
                cursor: pointer;
                float: left;
                height: 100%;
                width: 44px;
                background: url(../images/icon_13.png) no-repeat center;
                border-left: 1px solid #ccc;
            }
        }
    }
}

//listBox搜索样式
.listSearch .ant-form-item {
    margin-bottom: 10px !important;
}

.active-row .public_fixedDataTableCell_main {
    background-color: #d8dfe6 !important;
    color: white;
}

.cellEdit,
.cellDele,
.cellRole {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    vertical-align: middle;
}

.cellEdit {
    background: url(../images/edit_b.png) no-repeat;
}

.cellDele {
    background: url(../images/dele_b.png) no-repeat;
}

.cellRole {
    background: url(../images/role_b.png) no-repeat;
}

//弹框列配置样式
.columnConfig .ant-checkbox-wrapper:not(:last-child) {
    margin-right: 0;
    width: 160px;
    margin-bottom: 10px;
}

//头部工厂选择框样式修改
.main-right .top .ant-select .ant-select-selection {
    border-radius: 11px;
}

//table拖拉样式
.fixedDataTableCellLayout_columnReorderContainer {
    background: none !important; // border-left: 1px solid #ccc !important;
}

.public_fixedDataTable_header,
.public_fixedDataTable_header .public_fixedDataTableCell_main {
    background: #eff3f7 !important;
}

.fixedDataTableLayout_main {
    // border-left: 0px;
    // border-right: 0px;
}

.fixedDataTableCellLayout_main {
    border-bottom: 1px solid #e4e7ea !important;
    border-right: 1px solid #e4e7ea !important;
}

.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_cellContent {
    margin-left: 2px !important;
}

.public_fixedDataTableCell_cellContent {
    color: #4c4c4c;
}

.fixedDataTableCellLayout_columnReorderContainer {
    top: -15px;
    right: 20px;
    position: absolute;
    color: #c0cdd1;
}

.fixedDataTableCellLayout_columnReorderContainer::after {
    content: "\E642" !important;
    display: block;
    font-family: "anticon" !important;
}

.public_fixedDataTableCell_reordering .fixedDataTableCellLayout_columnReorderContainer {
    color: #039aca !important;
}

.fixedDataTableLayout_main,
.public_fixedDataTable_main,
.fixedDataTableRowLayout_rowWrapper,
.fixedDataTableColumnResizerLineLayout_main {
    // border: 0px !important;
}

//列表操作文字hover
.changeWordStyle:hover {
    color: #fff !important;
}

.tableAction {
    font-family: "Microsoft YaHei Light Regular";
    font-size: 12px;
    min-width: 60px;
    height: 25px;
    line-height: 25px;
    float: left;
    display: inline-block;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-right: 10px;
    text-align: center;
    margin-top: 7px;
    padding: 0 5px;
    background: $tableBtnColor;
    color: #fff;
}

.exOrIm,
.exOrIm:hover {
    background-color: #edf1f3;
    color: #757b80 !important;
}

//antd tabs组件修改 .ant-tabs-bar
.ant-tabs-bar {
    margin-bottom: 0;
}

.ant-tabs-vertical.ant-tabs-left>.ant-tabs-content {
    padding-left: 0;
}

.ant-table-tbody td {
    vertical-align: middle;
}

.ant-menu-inline .ant-menu-submenu-title {
    height: 45px;
    line-height: 45px;
    background: $leftBgc;
    color: #9eb0c0;
    font-family: "Microsoft YaHei Light Regular";
    font-size: 14px;
    margin: 0 0 1px 0;
}

.ant-menu-dark {
    background-color: $leftBgc !important;
}

.ant-menu-dark .ant-menu-item {
    margin: 0 0 .6px 0 !important;
}

.ant-menu-submenu {
    background: $leftBgc !important;
}

.ant-menu-submenu-title {
    color: $leftColor !important;
}

.ant-menu-dark .ant-menu-submenu-title:hover,
.ant-menu-submenu-selected {
    color: $leftSelectColor !important;
    font-size: 16px;
}

.ant-menu-dark .ant-menu-item-active,
.ant-menu.ant-menu-dark .ant-menu-item-selected {
    background-color: $leftSelectBgc !important;
    color: $leftSubSColor !important;
    a {
        color: $leftSubSColor !important;
    }
}

.ant-menu-dark .ant-menu-inline.ant-menu-sub {
    background-color: $leftSubBgc;
}
.ant-menu-sub{
    box-shadow: none !important;
}

//table 复杂列表样式
.infoForm {
    border: 1px solid #d3d3d3;
    background-color: #fff;
    margin: 10px 9px 0;
    padding: 20px 0;
}

//.infoForm_row{
//    margin-bottom: 20px;
//}
.infoForm_label {
    height: 28px;
    width: 100%;
    display: block;
    line-height: 28px;
    text-align: right;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    padding-right: 4px;
}

//动态添加表单
.dynamic-delete-button {
    cursor: pointer;
    position: relative;
    top: 4px;
    font-size: 24px;
    color: #999;
    transition: all .3s;
}

.dynamic-delete-button:hover {
    color: #777;
}

.dynamic-delete-button[disabled] {
    cursor: not-allowed;
    opacity: 0.5;
}

//表格航编辑
.editable-cell {
    position: relative;
}

.editable-cell-input-wrapper,
.editable-cell-text-wrapper {
    padding-right: 24px;
}

.editable-cell-text-wrapper {
    padding: 5px 24px 5px 5px;
}

.editable-cell-icon,
.editable-cell-icon-check {
    position: absolute;
    top: 5px; //   right: 10px;
    //   width: 20px;
    cursor: pointer;
}

.editable-cell-icon-check:nth-child(2) {
    position: absolute;
    top: -2px;
    right: 0px; //   right: 10px;
    //   width: 20px;
    cursor: pointer;
}

.editable-cell-icon {
    line-height: 18px;
}

.editable-cell-icon-check {
    line-height: 28px;
}

.editable-cell-icon:hover,
.editable-cell-icon-check:hover {
    color: #108ee9;
}

.editable-add-btn {
    margin-bottom: 8px;
}

//antd表格上面按钮的样式
.table-operations {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
}

.table-operations>button {
    margin-right: 32px;
}

table thead {
    background-color: #eee;
}

.noTransition {
    input {
        transition: none !important;
    }
}

// 按钮权限显示控制
.hidePerms {
    display: none;
}

input[type="text"],
input[type="password"],
input[type="number"],
textarea {
    -webkit-appearance: button !important;
}